import { request } from "./request"
const Logs = {
    logsUrl: '/logs',
    stabilityUrl: '/logs/stability',
    getBlankScreen: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'blankScreen'
            }
        })
    },
    getXhr: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'xhr'
            }
        })
    },
    getError: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'error'
            }
        })
    },
    getStability: (payload) =>{
        return request({
            url: Logs.stabilityUrl,
            method: 'GET'
        })
    },
    getPv: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'pv'
            }
        })
    },
    getUv: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'uv'
            }
        })
    },
    getTiming: (payload) =>{
        return request({
            url: Logs.logsUrl,
            method: 'GET',
            params:{
                type: 'timing'
            }
        })
    },
}
export default Logs